package com.mapbased.da;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: mapbased.com</p>
 *
 * @author chy_hs(Baily)
 * @version 1.0
 */
public class MapperField
    extends Field
{
  final  FieldMapper fieldMapper;
    public MapperField(FieldMapper fm)
    {
        super();
        this.fieldMapper=fm;
    }

    public Object getValue(ResultSet rs,int idx)
        throws SQLException
    {

        return this.fieldMapper.map(rs.getObject(idx));
    }

    public static void main(String[] args)
    {
        // MapperField mapperfield=new MapperField();
    }
}
